package com.hewei.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.hewei.properties.GirlProperties;

@RestController
@RequestMapping(value = "/hello")
public class TestController {
	@Autowired
	private GirlProperties girlProperties;
	
	
	//@RequestMapping(value = "/say", method = RequestMethod.POST)
	@PostMapping(value = "/say")
	public String say(@RequestParam("id") String id) {
		return girlProperties.getCupsize() +"    " + id;
	}
}
